package connect4client.commands;

import messages.RegistrationFailedMessage;


/**
 * The GiveUp command.
 * 
 * This command will handle GiveUp messages.
 */
public class RegistrationFailedCommand extends Command {

	public RegistrationFailedCommand(RegistrationFailedMessage message){
		super(message);
	}
	
	@Override
	public void execute() {
		guiMediator.registrationFailed();
		controller.getMessageManager().restartMessageCounter();
	}
}
